package com.flink.entity;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 描述:
 * 统计user
 *
 * @author yanzhengwu
 * @create 2022-08-20 15:51
 */
public class CountUser {

    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    private Long id;
    private Long counts;
    private String name;
    private Long statusCount;


    private Long timeStamp;
    private Long windowStart;
    private Long windowEnd;

    public String formatDate(long timeStamp){
        return sdf.format(new Date(timeStamp));
    }

    @Override
    public String toString() {
        return "CountUser{" +
                "id=" + id +
                ", counts=" + counts +
                ", name='" + name + '\'' +
                ", statusCount=" + statusCount +
                ", timeStamp=" + timeStamp +
                ", windowStart=" + windowStart +
                ", windowEnd=" + windowEnd +
                '}';
    }

    public Long getStatusCount() {
        return statusCount;
    }

    public void setStatusCount(Long statusCount) {
        this.statusCount = statusCount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCounts() {
        return counts;
    }

    public void setCounts(Long counts) {
        this.counts = counts;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public Long getWindowStart() {
        return windowStart;
    }

    public void setWindowStart(Long windowStart) {
        this.windowStart = windowStart;
    }

    public Long getWindowEnd() {
        return windowEnd;
    }

    public void setWindowEnd(Long windowEnd) {
        this.windowEnd = windowEnd;
    }


}
